﻿package app.model 
{
    import flash.display.Stage;
    import org.puremvc.as3.interfaces.IProxy;
    import org.puremvc.as3.patterns.proxy.Proxy;
    
    /**
    * author lzyy
    * Email:healdream@gmail.com
    * Blog:http://lab.lzyy.name/blog
    */
    public class StageProxy extends Proxy implements IProxy
    {
        public static const NAME:String = 'StageProxy';
        public function StageProxy(obj:Stage) 
        {
            super(NAME, obj);
        }
        
        public function get containerWidth()
        {
            return stage.stageWidth;
        }
        
        public function get containerHeight()
        {
            return stage.stageHeight;
        }
        
        public function get stage()
        {
            return this.getData() as Stage;
        }
    }
    
}